<%@ page import="com.alibaba.fastjson.JSONObject" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link href="static/dist/css/bootstrap.css" rel="stylesheet">
</head>
<body>
<%
    JSONObject object = (JSONObject) request.getAttribute("object");
    String id = object.getString("id");
    String name = object.getString("name");
    String password = object.getString("password");
%>

<div style="width: 600px;margin: 10% auto">
    <form action="update.do" class="form-horizontal">
        <div class="form-group">
            <label class="col-sm-2 control-label">ID:</label>
            <div class="col-sm-10">
                <input name="id" readonly value="<%=id%>" class="form-control input-lg">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">NAME:</label>
            <div class="col-sm-10">
                <input name="uname" value="<%=name%>" class="form-control input-lg">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">PASSWD:</label>
            <div class="col-sm-10">
                <input name="upassword" value="<%=password%>" class="form-control input-lg">
            </div>
        </div>

        <div CLASS="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary btn-lg btn-block">修改</button>
            </div>
        </div>

    </form>
</div>

</body>
</html>
